//垃圾回收
function process(data) {

}

var someReallBigData = {}
process(someReallBigData)

var btn = document.getElementById("Mybutton")

btn.addEventListener("chick", function () {
    console.log("button clicked")

})

function process(data) {

}
//在这个块中定义内容可以销毁
{
    var someReallBigData = {}
    process(someReallBigData)
}

var btn = document.getElementById("Mybutton")

btn.addEventListener("chick", function () {
    console.log("button clicked")

})
